<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
      <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>Cyberfish - Логин</title>
	
	<link rel="stylesheet" type="text/css" href="css/cupertino/jquery-ui-1.8.16.custom.css">
	<link rel="stylesheet" type="text/css" href="css/main.css">
	
	<script type="text/javascript" src="../js/jquery.min.js"></script>
	<script type="text/javascript" src="../js/jquery-ui.min.js"></script>
</head>
<body>
	<style>
		#login div {
			padding-bottom: 10px;
		}
		#login input[type=text], #login input[type=password] {
			width:200px;
		}
	</style>
	
	<script>
		$(function() {
			$('#login').dialog( {
				title: 'Авторизация',
				buttons: { 
					'Войти': function() { $('#login form').submit() }
				},
				modal: true,
				draggable: false,
				resizable: false,
				width: 230
			} );
			
			$('.ui-dialog .ui-dialog-titlebar .ui-dialog-titlebar-close').hide();
		} );
	</script>
	<div id='login' style="display:none;">
		<form action='login.php' method=post>
			<div>Имя <br><input type=text name='log'></div>
			<div>Пароль <br> <input type=password name='pwd'></div>
			<div><input type=checkbox name=remember> Запомнить</div>
		</form>
		<div class="ui-state-error ui-corner-all" style="padding: 0 .7em; display:{if $errMsg}block{else}none{/if}"> 
			<p><span class="ui-icon ui-icon-alert" style="float: left; margin-right: .3em;"></span> 
			{$errMsg}</p>
		</div>
	</div>
</body>
</html>